<?php

class xiecx_config
{

    protected static $config;

    public function __construct()
    {
        self::set_config();
    }

    public static function item($key)
    {
        if (isset(self::$config->$key))
        {
            return self::$config->$key;
        }
        else
        {
            return NULL;
        }
    }
    
    protected static function set_config()
    {
        self::$config = (object)require_config_files();
    }

}